package com.core.excel.jxl;

import lombok.Data;

import java.util.Date;

@Data
public class Employee {
    private String name;
    private Date birthDate;
    private Double payment;
    private Double bonus;

    public Employee(String name, Date birthDate, double payment, double bonus) {
        this.name = name;
        this.birthDate = birthDate;
        this.payment = payment;
        this.bonus = bonus;
    }

    public String getSalaryGroup() {
        return payment.doubleValue() > 2000d ? "high" : "normal";
    }


}
